import request from '@/utils/request'

/** *
 * 获取权限列表
 * **/

export function getPermissionList() {
  return request({
    url: '/Permission/GetList'
  })
}
// 新增权限
export function addPermission(data) {
  return request({
    url: '/Permission/Add',
    method: 'post',
    data
  })
}

// 更新权限
export function updatePermission(data) {
  return request({
    url: '/Permission/Update',
    method: 'post',
    data
  })
}

// 删除权限
export function delPermission(params) {
  return request({
    url: '/Permission/Delete',
    method: 'delete',
    params
  })
}
// 获取权限详情
export function getPermissionDetail(params) {
  return request({
    url: '/Permission/Get',
    params
  })
}
